#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int fun(unsigned int x) {
	int n = 0;
	while (x + 1) {
		n++;
		x = x | (x + 1);
	}
	return n;
}
int main()
{
	printf("%d", fun(2014));
	return 0;
}